(m2-definition, m2-module): Don't use previous-line.
authorThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 27 Aug 2007 13:37:50 +0000 (13:37 +0000)
committerThien-Thi Nguyen <ttn@gnuvola.org>
Mon, 27 Aug 2007 13:37:50 +0000 (13:37 +0000)
lisp/progmodes/modula2.el

index fde526ab303a39fb5056c946b614c3129493991f..f2530a7f502cc90ef4919c8546ca26e1d953be53 100644 (file)
@@ -295,7 +295,7 @@ followed by the first character of the construct.
   (insert "DEFINITION MODULE ")
   (let ((name (read-string "Name: ")))
     (insert name ";\n\n\n\nEND " name ".\n"))
-  (previous-line 3))
+  (forward-line -3))
 
 (defun m2-else ()
   "Insert ELSE keyword and indent for next line."
@@ -364,7 +364,7 @@ followed by the first character of the construct.
   (insert "IMPLEMENTATION MODULE ")
   (let ((name (read-string "Name: ")))
     (insert name ";\n\n\n\nEND " name ".\n")
-    (previous-line 3)
+    (forward-line -3)
     (m2-header)
     (m2-type)
     (newline)